package com.example.MA.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName(value = "userinfo")
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo implements Serializable {
    private static final long serialVersionUID=1L;


    @TableId(value = "UserID", type = IdType.AUTO)
    private Integer userid;

    @TableField("UserName")
    private String username;

    @TableField("Password")
    private String password;

    @TableField("Phone")
    private String phone;

    @TableField("Role")
    @TableLogic
    private Integer role;
}
